<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
	"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link href="${path }/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table id="leftout">
<tr>
  	<td id="menuTitle">
  	<strong>系统选项</strong></td>
</tr>
<tr>
   	<td id="leftmiddle">
   	<table id="leftin">
    <tr>
       	<td class="menuSpace">
       	<img class="ic" ></td>
    </tr>
    <tr>
      	<td class="leftMenu">
      		<a href="${path }/goIndex.do">后台首页</a></td>
    </tr>
    <tr>
      	<td class="menuSpace">
      	<img class="ic"></td>
    </tr>
 	<c:if test="${type=='admin' }">
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/admin/teacherManager.do">老师管理</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/admin/studentManager.do">学生管理</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/admin/buildingManager.do">宿舍楼管理</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/admin/domitoryManager.do">宿舍管理</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/admin/stuDom.do">学生入住登记</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/admin/stuChangeDom.do">学生寝室调换</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/admin/stuOutDom.do">学生迁出登记</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/admin/logManager.do">学生缺寝记录</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	</c:if>
 	
 	<c:if test="${type=='teacher' }">
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/teacher/myStudent.do">学生管理</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/teacher/myLog.do">学生缺寝记录</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	</c:if>
 	<c:if test="${type=='student' }">
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/student/studentLog.do">我的缺寝记录</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	</c:if>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/preChangePassword.do">修改密码</a></td>
 	</tr>
 	<tr>
   		<td class="menuSpace">
   		<img class="ic"></td>
 	</tr>
 	<tr>
   		<td class="leftMenu">
   		<a href="${path }/quit.do" 
   			onclick="return confirm('确定要退出系统吗？')">退出系统</a></td>
  	</tr>
	</table>
	</td>
</tr>
</table>
</body>
</html>